package com.zxjbyte.yiyi.module.system.domain.request.log;

import com.zxjbyte.yiyi.framework.common.constant.Constant;
import com.zxjbyte.yiyi.framework.common.domain.api.PageQuery;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author zhangxingjia
 * @Date 2023/3/19 9:46
 * @Version: 1.0
 */
@Data
@Schema(description = "异常日志分页请求结构体")
public class ErrorLogPageRequest extends PageQuery {

    @Parameter(description = "异常发生开始时间")
    @DateTimeFormat(pattern = Constant.PATTERN_DATETIME)
    private Date startExTime;

    @Parameter(description = "异常发生结束时间")
    @DateTimeFormat(pattern = Constant.PATTERN_DATETIME)
    private Date endExTime;

    @Parameter(description = "处理状态 [0:未处理, 1:已处理, 2:已忽略]")
    private Integer processStatus;
}
